home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Applications / ISBN folder / Readme < prev   
Text File  |  1994-03-21  |  1KB  |  46 lines

  1. This FileMaker Pro database demonstrates how to validate the integrity
  2. of an ISBN using calculated fields.  I wrote these for use in my
  3. Personal Librarian template, but I figured someone else might find
  4. them useful, or at least interesting.  If you find anything wrong
  5. with the way I've implemented these calculations, or know of an
  6. easier way to do it, please let me know.
  7.  
  8. Ken
  9. kkirksey@world.std.com
  10.  
  11. ------
  12.  
  13. A Short Discourse on ISBNs
  14.  
  15. ISBNs are of the form X-YYY-ZZZZZ-C where X is the country or language
  16. code, YYY is the publisher number, ZZZZZ is the book number, and C
  17. is the check digit.  Larger publishers will have fewer digits in their
  18. publisher number, and more in their book number.  Smaller publishers
  19. are the opposite.
  20.  
  21. Given an ISBN number, for instance 0-938151-31-2, the algorithm for 
  22. calculating validity works like
  23. so:
  24.  
  25.    10 * 0 = 0
  26.     9 * 9 = 81
  27.     8 * 3 = 24
  28.     7 * 8 = 56
  29.     6 * 1 = 6
  30.     5 * 5 = 25
  31.     4 * 1 = 4
  32.     3 * 3 = 9
  33.     2 * 1 = 2
  34.     1 * 2 = 2 
  35.   --------------
  36.             209
  37.             
  38.   209 Mod 11 = 0
  39.   
  40. If the sum of the products Mod 11 equals zero, then the number is good.
  41. Those of you with a mathematical bent will notice that this is simply a
  42. 10D dot product with numbers coprime to 11.  Since the 10 is coprime to 11,
  43. and it's not a single digit, the ISBN uses 'X' in it's place.  'X' will
  44. only appear as the last digit, the check digit.
  45.  
  46.